package com.ruoyi.common.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "jy")
public class JiYunConfig {
    private static String ip;
    private static String port;
    private static boolean available;

    public static void setIp(String ip) {
        JiYunConfig.ip = ip;
    }

    public static void setPort(String port) {
        JiYunConfig.port = port;
    }

    public static void setAvailable(boolean available) {
        JiYunConfig.available = available;
    }

    public static String getIp() {
        return ip;
    }

    public static String getPort() {
        return port;
    }

    public static boolean isAvailable() {
        return available;
    }
}
